package com.smi.cn.satemachine;

import com.smi.cn.satemachine.ReturnVo.RmaStatus;
import org.squirrelframework.foundation.fsm.Converter;

/**
 * Created by zhangyanfei on 2017/7/26.
 *
 * @author zhangyanfei
 * @date 2017/07/26
 */
public class ReturnStatusConvertor implements Converter<RmaStatus>{
    @Override
    public String convertToString(RmaStatus obj) {
        return obj.name();
    }

    @Override
    public RmaStatus convertFromString(String name) {
        return RmaStatus.valueOf(name);
    }
}
